package com.wtx.chapter04;

/**
 * @description: 链表测试
 * @author: wtx
 * @createDate: 2020/5/18
 */
public class Main {

    public static void main(String[] args) {

        Stack<Integer> stack = new LinkedStack<>();
        for (int i = 0; i < 5; i++) {
            stack.push(i);
            System.out.println(stack);
        }

        stack.pop();
        System.out.println(stack);
        /*LinkedList<Integer> linkedList = new LinkedList<>();

        for (int i = 0; i < 5; i++) {
            linkedList.addFirst(i);
        }
        System.out.println(linkedList);*/
    }
}
